<template>
	<view class="content">
		<view class="search">
			<view class="left" @tap="nextPage(`/pages/index/index?type=big`)">
				<u-icon name="arrow-left"></u-icon>
			</view>
			<view class="middle">
				<image src="/static/server/search.png" mode=""></image>
				<input type="text"  placeholder="请输入搜索的关键词" 
				placeholder-style="{
					
					width: 206rpx;
					font-size: 26rpx;
					padding-left: 5rpx;
					font-family: PingFang;
					font-weight: 400;
					color: #888888;
					line-height:59rpx;

				}"
				value="" />
			</view>
			<view class="right">
				<image src="/static/server/logo1.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
export default{
	data(){
		return{
			
		}
	},
	methods: {
		//跳转列表对应页面
		nextPage(url) {
			uni.navigateTo({
				url: url,
				fail() {
					uni.switchTab({
						url: url,
						fail() {
							uni.showToast({
								title: '敬请期待',
								icon: 'none'
							});
						}
					});
				}
			});
		}
	}
}

</script>

<style lang="scss" scoped>
.content{
	padding: 20rpx 0 5rpx 0;
	background: #F6F6F6 !important;
	.search{
		margin: 0 10rpx 20rpx 0;
		padding-top: 30rpx;
		height: 73rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		
		.left{
			.u-icon{
				font-size: 50rpx;
				color: #597BFD;
			}
		}
		.middle{
			padding: 0 20rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			width: 440rpx;
			height: 73rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			image{
				padding-left: 10rpx;
				width: 32rpx;
				height: 33rpx;
			}
		}
		.right{
			image{
				width: 150rpx;
				height: 43rpx;
			}
		}
	}
}
</style>
